package cn.ixinjiu.libraryMangement.dao;

import cn.ixinjiu.libraryMangement.entity.UserInfo;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by XinChen on 2023-05-08
 *
 * @TODO
 */
public interface IUserInfoDao {

    UserInfo login(String email, String password, int loginType) throws SQLException;
    int register(UserInfo user);
    List<UserInfo> userList();
    int count();
    int userInfoDel(int id);
    int userInfoUpd(UserInfo user);
    UserInfo getUserInfoById(int id) throws SQLException;
}
